<%@page import="java.util.ArrayList"%>
<%@page import="实体类.Student"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
	
	pageContext.setAttribute("name", "zhangsan");
	request.setAttribute("name", "lisi");
	
	Student student = new Student(1,"张三",27,"男");
	session.setAttribute("student", student);
	
	Student student1 = new Student(1,"张三1",27,"男");
	Student student2 = new Student(2,"张三2",27,"男");
	Student student3 = new Student(3,"张三3",27,"男");
	ArrayList<Student> list = new ArrayList<Student>();
	list.add(student1);
	list.add(student2);
	list.add(student3);
	application.setAttribute("list", list);
	
	%>
	
	<%=pageContext.getAttribute("name")%><br>
	<%=request.getAttribute("name")%><br>
	<%=session.getAttribute("name")%><br>
	<%=application.getAttribute("list")%><br>
	${requestScope.name}
	<hr>
	
	${student.name }
	${student.age }
	<hr>
	
	${SB}
	<hr>
	
	<%=request.getContextPath() %><br>
	${pageContext.request.contextPath}<br>
	
</body>
</html>